-//
-// BBBackgroundView.swift
-// Flat Bezel
-//
-// Created by Ruben Beltran del Rio on 2/8/23.
-// Copyright © 2023 BRNBW. All rights reserved.
-//
-
import Foundation
import Cocoa
class BackgroundView: QSBezelBackgroundView {
override func draw(_ rect: NSRect) {
- let boundsRect = self.bounds
+ let boundsRect = bounds
let roundRect = NSBezierPath()
roundRect.appendRoundedRect(boundsRect, xRadius: 8.0, yRadius: 8.0)
roundRect.addClip()
- let darkMode = self.effectiveAppearance.name == .darkAqua
+ let darkMode = effectiveAppearance.name == .darkAqua
if (darkMode) {
NSColor(red: 0.1, green: 0.1, blue: 0.1, alpha: 0.99).setFill()
} else {